package com.arpa.oms.domain.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.arpa.ntocc.common.common.util.excel.StringConverter;
import com.arpa.wms.domain.entity.Goods;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@ApiModel(value="OmsGoodsRelationExcleDTO对象", description="OMS组合商品导入")
public class OmsGoodsRelationExcleDTO implements Serializable {


    private static final long serialVersionUID = -142028950453006189L;

    @ApiModelProperty(value = "组合商品编码")
    @ExcelProperty(converter = StringConverter.class)
    private String goodRalationCode;

    @ApiModelProperty(value = "组合商品编码")
    @ExcelProperty(converter = StringConverter.class)
    private String goodRalationName;

    @ApiModelProperty(value = "组合商品单位")
    @ExcelIgnore
    private String goodRelationUnit;

    @ApiModelProperty(value = "组合商品单位")
    @ExcelProperty(converter = StringConverter.class)
    private String goodRelationUnitText;

    @ApiModelProperty(value = "货主编码")
    @ExcelProperty(converter = StringConverter.class)
    private String shipmentCode;

    @ApiModelProperty(value = "货主名称")
    @ExcelProperty(converter = StringConverter.class)
    private String shipmentName;

    @ApiModelProperty(value = "商品编码")
    @ExcelProperty(converter = StringConverter.class)
    private String goodCode;

    @ApiModelProperty(value = "商品条码")
    @ExcelProperty(converter = StringConverter.class)
    private String barCode;

    @ApiModelProperty(value = "商品编码")
    @ExcelProperty(converter = StringConverter.class)
    private String goodsName;

    @ApiModelProperty(value = "基本单位")
    @ExcelProperty(converter = StringConverter.class)
    private String basicUnitName;

    @ApiModelProperty(value = "数量")
    @ExcelProperty(converter = StringConverter.class)
    private String quantityStr;

    @ApiModelProperty(value = "组合商品价格")
    @ExcelProperty(converter = StringConverter.class)
    private String goodRelationPriceStr;

    @ApiModelProperty(value = "备注")
    @ExcelProperty(converter = StringConverter.class)
    private String remark;

    @ApiModelProperty(value = "基本单位编码")
    @ExcelIgnore
    private String baseUnitCode;

    @ApiModelProperty(value = "数量")
    @ExcelIgnore
    private BigDecimal quantity;

    @ApiModelProperty(value = "售价")
    @ExcelIgnore
    private BigDecimal goodRelationPrice;

    @ApiModelProperty(value = "商品")
    @ExcelIgnore
    private Goods goods;
}
